package com.wise.entities.content;

import com.wise.framework.daoannotations.Column;
import com.wise.framework.daoannotations.Table;
import com.wise.framework.entitiesbasic.IdTimeEntity;
import lombok.Getter;
import lombok.Setter;

import java.util.Objects;

@Getter
@Setter
@Table("success_article_column")
public class SuccessArticleColumn extends IdTimeEntity {

    /**
     * column_name - 栏目名
     */
    @Column("column_name")
    private String columnName;
    public static final String _columnName = "column_name";

    @Column("lang")
    private String lang;
    public static final String _lang = "lang";

    /**
     * show - 是否显示
     * 0:隐藏    1：显示
     */
    @Column("show_state")
    private Integer showState;
    public static final String _showState = "show_state";

    /**
     * sort - 排序
     */
    @Column("sort")
    private Integer sort;
    public static final String _sort = "sort";

    @Column("alias")
    private String alias;
    public static final String _alias = "alias";

    private int num;

    public void setNum(Integer num){
        this.num = Objects.isNull(num) ? 0 : num;
    }
}
